#include "WriterThread.h"
#include "Socket.h"
#include <string>
WriterThread::WriterThread(ClientSocket* s)
{
	m_Socket =s;
}
void WriterThread::Work()
{
	
	
	while(true)
	{
		SockMessage outMsg;
		std::string s;
		std::getline(std::cin,s,'\n');
		outMsg.WriteString(s);
		m_Socket->Send(outMsg);
	}
}